<?php 

class SelectionmoduleModel extends CI_Model {
    var $nom='';
    var $listemodule="";
   
 
    function selectionmodule()
    {
        // Call the Model constructor
       // parent::Model();
    }
    
    function setNommodule()
    {       
        $this->nommodule   = $this->session->userdata('nommodule');             
    }    
    
    function getData()
    {        
        return array('nom'=>$this->nom);
    }
    
    function getListemodule()
    {
        $sql = "SELECT nom FROM module";
        $this->listemodule=  $this->db->query($sql);
    } 
}
